using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MT_ToolKit;
using UnityEngine.UI;

public class TimerCtrl : MonoBehaviour
{
    private TimerItem timerItem;
    private Text txt_Timer;
    void Start()
    {
        txt_Timer = transform.Find("Text").GetComponent<Text>();
        
        timerItem = TimerManager.Instance.CreateTimeItem(25);
        timerItem.SetShowText(txt_Timer);
        timerItem.SetTimerEndEvent(Show);
        timerItem.OnStart();
    }

    void Show()
    {
        Debug.Log("计时结束");
    }


}
